#/bin/sh
disk_info_dir="/dev/shm/zstorage"


if [ ! -d ${disk_info_dir} ];then
  mkdir -p ${disk_info_dir}
fi

get_disk_info="iostat -dxkt 1 2"

flock -x -o -w 2 ${disk_info_dir}/disk_stat.lock -c "$get_disk_info >${disk_info_dir}/disk_stat.dat"   

